package com.yuncheng.spcyApi.busService.exam.constant;

import com.yuncheng.spcyApi.constant.other.PxSjConstant;

/**
 * @author hua
 */
public enum  QuestionTypeEnum implements IBaseEnum<Integer> {
    SIGNAL_CHOICE(0, PxSjConstant.SJTM_LX_DANX, QuestionClassificationTypeEnum.OBJECTIVE,2,26),
    MULTIPLE_CHOICE(1,PxSjConstant.SJTM_LX_DUOX,QuestionClassificationTypeEnum.OBJECTIVE,2,26),
    JUDGMENTAL(2,PxSjConstant.SJTM_LX_PDT,QuestionClassificationTypeEnum.OBJECTIVE,2,2),
    COMPLETION(3,"填空",QuestionClassificationTypeEnum.MEDIUM,1,50),
    SUBJECTIVE(4,PxSjConstant.SJTM_LX_ZHUG,QuestionClassificationTypeEnum.SUBJECTIVE,1,1),
    FILE(5,"文件",QuestionClassificationTypeEnum.SUBJECTIVE,1,10),
    CODE(6,"代码",QuestionClassificationTypeEnum.MEDIUM,1,10);


    private Integer value;


    private String label;

    //选择最小个数
    private int itemMin;

    //选项最多个数，<0不限制
    private int itemMax;

    private QuestionClassificationTypeEnum classificationType;


    QuestionTypeEnum(Integer value, String label,QuestionClassificationTypeEnum classificationType,int itemMin,int itmeMax) {
        this.value = value;
        this.label = label;
        this.classificationType=classificationType;
        this.itemMin=itemMin;
        this.itemMax=itmeMax;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getItemMin() {
        return itemMin;
    }

    public void setItemMin(int itemMin) {
        this.itemMin = itemMin;
    }

    public int getItemMax() {
        return itemMax;
    }

    public void setItemMax(int itemMax) {
        this.itemMax = itemMax;
    }

    public QuestionClassificationTypeEnum getClassificationType() {
        return classificationType;
    }

    public void setClassificationType(QuestionClassificationTypeEnum classificationType) {
        this.classificationType = classificationType;
    }
}
